.class public Les/jk0;
.super Ljava/lang/Object;
.source "DownloadHelper.java"

# interfaces
.implements Les/dl0$a;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Les/jk0$e;,
        Les/jk0$d;
    }
.end annotation


# instance fields
.field private a:J

.field private b:Les/vj0$b;

.field private c:Z

.field private final d:Les/dl0;

.field private e:Les/jk0$e;


# direct methods
.method public constructor <init>()V
    .locals 2

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput-boolean v0, p0, Les/jk0;->c:Z

    .line 3
    new-instance v0, Les/dl0;

    invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;

    move-result-object v1

    invoke-direct {v0, v1, p0}, Les/dl0;-><init>(Landroid/os/Looper;Les/dl0$a;)V

    iput-object v0, p0, Les/jk0;->d:Les/dl0;

    return-void
.end method

.method static synthetic a(Les/jk0;)Les/vj0$b;
    .locals 0

    .line 1
    iget-object p0, p0, Les/jk0;->b:Les/vj0$b;

    return-object p0
.end method

.method public static a(Ljava/lang/String;Ljava/lang/String;Les/jo0;)Ljava/lang/String;
    .locals 3
    .param p2    # Les/jo0;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 127
    invoke-static {}, Lcom/ss/android/socialbase/appdownloader/e;->k()Lcom/ss/android/socialbase/appdownloader/e;

    move-result-object v0

    invoke-static {}, Les/lk0;->a()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v0, v1, p0}, Lcom/ss/android/socialbase/appdownloader/e;->a(Landroid/content/Context;Ljava/lang/String;)Les/zn0;

    move-result-object p0

    if-eqz p0, :cond_0

    .line 128
    invoke-virtual {p0}, Les/zn0;->R0()Ljava/lang/String;

    move-result-object p0

    return-object p0

    .line 129
    :cond_0
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p0

    if-nez p0, :cond_1

    return-object p1

    :cond_1
    const/4 p0, 0x0

    .line 130
    :try_start_0
    invoke-static {}, Les/lk0;->a()Landroid/content/Context;

    move-result-object p1

    invoke-static {p1}, Lcom/ss/android/socialbase/appdownloader/d;->a(Landroid/content/Context;)Ljava/lang/String;

    move-result-object p0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    nop

    :goto_0
    const/4 p1, 0x0

    const-string v0, "back_fix_sigbus"

    .line 131
    invoke-virtual {p2, v0, p1}, Les/jo0;->a(Ljava/lang/String;I)I

    move-result v0

    const/4 v1, 0x1

    if-ne v0, v1, :cond_2

    return-object p0

    .line 132
    :cond_2
    invoke-static {}, Les/lk0;->a()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Context;->getFilesDir()Ljava/io/File;

    move-result-object v0

    .line 133
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v2

    if-nez v2, :cond_3

    .line 134
    invoke-virtual {v0}, Ljava/io/File;->mkdirs()Z

    .line 135
    :cond_3
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v2

    if-eqz v2, :cond_6

    invoke-virtual {v0}, Ljava/io/File;->isDirectory()Z

    move-result v2

    if-nez v2, :cond_4

    goto :goto_1

    :cond_4
    const-string v2, "bugfix_sigbus_all_brand"

    .line 136
    invoke-virtual {p2, v2, p1}, Les/jo0;->a(Ljava/lang/String;I)I

    move-result p1

    if-eq p1, v1, :cond_5

    .line 137
    invoke-static {}, Lcom/ss/android/socialbase/downloader/m/i;->b()Z

    move-result p1

    if-eqz p1, :cond_6

    .line 138
    :cond_5
    sget p1, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 p2, 0x15

    if-lt p1, p2, :cond_6

    const/16 p2, 0x19

    if-gt p1, p2, :cond_6

    .line 139
    invoke-static {}, Lcom/ss/android/socialbase/downloader/m/k;->a()Z

    move-result p1

    if-eqz p1, :cond_6

    .line 140
    invoke-virtual {v0}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object p0

    :cond_6
    :goto_1
    return-object p0
.end method

.method public static a(Ljava/util/Map;)Ljava/util/List;
    .locals 3
    .annotation build Landroidx/annotation/NonNull;
    .end annotation

    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Map<",
            "Ljava/lang/Integer;",
            "Ljava/lang/Object;",
            ">;)",
            "Ljava/util/List<",
            "Les/aj0;",
            ">;"
        }
    .end annotation

    .line 164
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    if-eqz p0, :cond_3

    .line 165
    invoke-interface {p0}, Ljava/util/Map;->isEmpty()Z

    move-result v1

    if-eqz v1, :cond_0

    goto :goto_1

    .line 166
    :cond_0
    invoke-interface {p0}, Ljava/util/Map;->values()Ljava/util/Collection;

    move-result-object p0

    invoke-interface {p0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;

    move-result-object p0

    :cond_1
    :goto_0
    invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_3

    invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    .line 167
    instance-of v2, v1, Les/aj0;

    if-eqz v2, :cond_2

    .line 168
    check-cast v1, Les/aj0;

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 169
    :cond_2
    instance-of v2, v1, Ljava/lang/ref/SoftReference;

    if-eqz v2, :cond_1

    check-cast v1, Ljava/lang/ref/SoftReference;

    invoke-virtual {v1}, Ljava/lang/ref/SoftReference;->get()Ljava/lang/Object;

    move-result-object v2

    instance-of v2, v2, Les/aj0;

    if-eqz v2, :cond_1

    .line 170
    invoke-virtual {v1}, Ljava/lang/ref/SoftReference;->get()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Les/aj0;

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    :cond_3
    :goto_1
    return-object v0
.end method

.method private a(I)Z
    .locals 3

    .line 38
    iget-object v0, p0, Les/jk0;->b:Les/vj0$b;

    iget-object v0, v0, Les/vj0$b;->d:Les/xi0;

    invoke-interface {v0}, Les/xi0;->b()I

    move-result v0

    const/4 v1, 0x1

    const/4 v2, 0x2

    if-ne v0, v2, :cond_0

    if-ne p1, v2, :cond_0

    return v1

    .line 39
    :cond_0
    iget-object p1, p0, Les/jk0;->b:Les/vj0$b;

    iget-object p1, p1, Les/vj0$b;->d:Les/xi0;

    invoke-interface {p1}, Les/xi0;->b()I

    move-result p1

    const/4 v0, 0x3

    if-ne p1, v0, :cond_1

    return v1

    :cond_1
    const/4 p1, 0x0

    return p1
.end method

.method static synthetic b(Les/jk0;)J
    .locals 2

    .line 1
    iget-wide v0, p0, Les/jk0;->a:J

    return-wide v0
.end method

.method private b(Les/ui0;)V
    .locals 3

    const-string v0, "android.permission.WRITE_EXTERNAL_STORAGE"

    .line 6
    invoke-static {v0}, Les/al0;->b(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_1

    if-eqz p1, :cond_0

    .line 7
    invoke-interface {p1}, Les/ui0;->a()V

    :cond_0
    return-void

    :cond_1
    const/4 v1, 0x1

    new-array v1, v1, [Ljava/lang/String;

    const/4 v2, 0x0

    aput-object v0, v1, v2

    .line 8
    new-instance v0, Les/jk0$b;

    invoke-direct {v0, p0, p1}, Les/jk0$b;-><init>(Les/jk0;Les/ui0;)V

    invoke-static {v1, v0}, Les/al0;->a([Ljava/lang/String;Les/al0$a;)V

    return-void
.end method

.method private d()Z
    .locals 1

    .line 1
    invoke-direct {p0}, Les/jk0;->e()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-direct {p0}, Les/jk0;->f()Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method private e()Z
    .locals 1

    .line 1
    iget-object v0, p0, Les/jk0;->b:Les/vj0$b;

    iget-object v0, v0, Les/vj0$b;->b:Les/zi0;

    if-eqz v0, :cond_0

    .line 2
    invoke-interface {v0}, Les/zi0;->t()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Les/jk0;->b:Les/vj0$b;

    iget-object v0, v0, Les/vj0$b;->b:Les/zi0;

    .line 3
    invoke-interface {v0}, Les/zi0;->a()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method private e(Les/zn0;)Z
    .locals 0

    .line 4
    invoke-direct {p0, p1}, Les/jk0;->f(Les/zn0;)Z

    move-result p1

    if-eqz p1, :cond_0

    iget-object p1, p0, Les/jk0;->b:Les/vj0$b;

    iget-object p1, p1, Les/vj0$b;->b:Les/zi0;

    invoke-static {p1}, Les/cl0;->a(Les/zi0;)Z

    move-result p1

    if-nez p1, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    return p1
.end method

.method private f()Z
    .locals 1

    .line 1
    iget-object v0, p0, Les/jk0;->b:Les/vj0$b;

    iget-object v0, v0, Les/vj0$b;->d:Les/xi0;

    invoke-interface {v0}, Les/xi0;->d()Z

    move-result v0

    return v0
.end method

.method private f(Les/zn0;)Z
    .locals 1

    if-eqz p1, :cond_0

    .line 2
    invoke-virtual {p1}, Les/zn0;->X0()I

    move-result p1

    const/4 v0, -0x3

    if-ne p1, v0, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    return p1
.end method

.method private g()V
    .locals 4

    .line 1
    invoke-static {}, Landroid/os/Message;->obtain()Landroid/os/Message;

    move-result-object v0

    const/4 v1, 0x1

    .line 2
    iput v1, v0, Landroid/os/Message;->what:I

    .line 3
    iget-object v1, p0, Les/jk0;->d:Les/dl0;

    const-wide/16 v2, 0x4b0

    invoke-virtual {v1, v0, v2, v3}, Landroid/os/Handler;->sendMessageDelayed(Landroid/os/Message;J)Z

    return-void
.end method

.method private h()Z
    .locals 1

    .line 1
    iget-object v0, p0, Les/jk0;->b:Les/vj0$b;

    iget-object v0, v0, Les/vj0$b;->b:Les/zi0;

    invoke-static {v0}, Les/cl0;->a(Les/zi0;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Les/jk0;->b:Les/vj0$b;

    iget-object v0, v0, Les/vj0$b;->d:Les/xi0;

    invoke-interface {v0}, Les/xi0;->a()I

    move-result v0

    invoke-static {v0}, Les/kk0;->a(I)Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method


# virtual methods
.method a(Landroid/content/Context;Les/sn0;)I
    .locals 9

    const/4 v0, 0x0

    if-nez p1, :cond_0

    return v0

    .line 71
    :cond_0
    iget-object v1, p0, Les/jk0;->b:Les/vj0$b;

    iget-object v1, v1, Les/vj0$b;->b:Les/zi0;

    invoke-interface {v1}, Les/zi0;->h()Ljava/util/Map;

    move-result-object v1

    .line 72
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    if-eqz v1, :cond_2

    .line 73
    invoke-interface {v1}, Ljava/util/Map;->entrySet()Ljava/util/Set;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_1
    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_2

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/util/Map$Entry;

    if-eqz v3, :cond_1

    .line 74
    new-instance v4, Les/bo0;

    invoke-interface {v3}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Ljava/lang/String;

    invoke-interface {v3}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/String;

    invoke-direct {v4, v5, v3}, Les/bo0;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-interface {v2, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 75
    :cond_2
    iget-object v1, p0, Les/jk0;->b:Les/vj0$b;

    iget-object v1, v1, Les/vj0$b;->b:Les/zi0;

    .line 76
    invoke-interface {v1}, Les/zi0;->d()J

    move-result-wide v3

    invoke-static {v3, v4}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v1

    iget-object v3, p0, Les/jk0;->b:Les/vj0$b;

    iget-object v3, v3, Les/vj0$b;->b:Les/zi0;

    .line 77
    invoke-interface {v3}, Les/zi0;->c()Ljava/lang/String;

    move-result-object v3

    iget-object v4, p0, Les/jk0;->b:Les/vj0$b;

    iget-object v4, v4, Les/vj0$b;->b:Les/zi0;

    .line 78
    invoke-interface {v4}, Les/zi0;->i()Z

    move-result v4

    iget-object v5, p0, Les/jk0;->b:Les/vj0$b;

    iget-object v5, v5, Les/vj0$b;->b:Les/zi0;

    .line 79
    invoke-interface {v5}, Les/zi0;->x()I

    move-result v5

    invoke-static {v5}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v5

    .line 80
    invoke-static {v1, v3, v4, v5}, Les/yk0;->a(Ljava/lang/String;Ljava/lang/String;ZLjava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 81
    iget-object v3, p0, Les/jk0;->b:Les/vj0$b;

    iget-object v3, v3, Les/vj0$b;->b:Les/zi0;

    invoke-interface {v3}, Les/zi0;->n()Lorg/json/JSONObject;

    move-result-object v3

    invoke-static {v3}, Les/jo0;->a(Lorg/json/JSONObject;)Les/jo0;

    move-result-object v3

    .line 82
    iget-object v4, p0, Les/jk0;->b:Les/vj0$b;

    iget-object v4, v4, Les/vj0$b;->b:Les/zi0;

    invoke-interface {v4}, Les/zi0;->a()Ljava/lang/String;

    move-result-object v4

    iget-object v5, p0, Les/jk0;->b:Les/vj0$b;

    iget-object v5, v5, Les/vj0$b;->b:Les/zi0;

    invoke-interface {v5}, Les/zi0;->l()Ljava/lang/String;

    move-result-object v5

    invoke-static {v4, v5, v3}, Les/jk0;->a(Ljava/lang/String;Ljava/lang/String;Les/jo0;)Ljava/lang/String;

    move-result-object v4

    .line 83
    iget-object v5, p0, Les/jk0;->b:Les/vj0$b;

    iget-object v5, v5, Les/vj0$b;->b:Les/zi0;

    invoke-interface {v5}, Les/zi0;->a()Ljava/lang/String;

    move-result-object v5

    invoke-static {v5, v4}, Lcom/ss/android/socialbase/downloader/downloader/c;->a(Ljava/lang/String;Ljava/lang/String;)I

    move-result v5

    .line 84
    invoke-static {}, Les/lk0;->a()Landroid/content/Context;

    move-result-object v6

    invoke-static {v6}, Lcom/ss/android/socialbase/downloader/downloader/g;->a(Landroid/content/Context;)Lcom/ss/android/socialbase/downloader/downloader/g;

    move-result-object v6

    invoke-virtual {v6, v5}, Lcom/ss/android/socialbase/downloader/downloader/g;->h(I)Les/zn0;

    move-result-object v5

    const/4 v6, 0x1

    if-eqz v5, :cond_3

    const/4 v7, 0x3

    .line 85
    iget-object v8, p0, Les/jk0;->b:Les/vj0$b;

    iget-object v8, v8, Les/vj0$b;->b:Les/zi0;

    invoke-interface {v8}, Les/zi0;->x()I

    move-result v8

    if-ne v7, v8, :cond_3

    .line 86
    invoke-virtual {v5, v6}, Les/zn0;->f(Z)V

    .line 87
    invoke-static {v5}, Lcom/ss/android/socialbase/downloader/m/f;->a(Les/zn0;)V

    .line 88
    :cond_3
    new-instance v5, Lcom/ss/android/socialbase/appdownloader/h;

    iget-object v7, p0, Les/jk0;->b:Les/vj0$b;

    iget-object v7, v7, Les/vj0$b;->b:Les/zi0;

    invoke-interface {v7}, Les/zi0;->a()Ljava/lang/String;

    move-result-object v7

    invoke-direct {v5, p1, v7}, Lcom/ss/android/socialbase/appdownloader/h;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    iget-object p1, p0, Les/jk0;->b:Les/vj0$b;

    iget-object p1, p1, Les/vj0$b;->b:Les/zi0;

    .line 89
    invoke-interface {p1}, Les/zi0;->b()Ljava/util/List;

    move-result-object p1

    invoke-virtual {v5, p1}, Lcom/ss/android/socialbase/appdownloader/h;->b(Ljava/util/List;)Lcom/ss/android/socialbase/appdownloader/h;

    iget-object p1, p0, Les/jk0;->b:Les/vj0$b;

    iget-object p1, p1, Les/vj0$b;->b:Les/zi0;

    .line 90
    invoke-interface {p1}, Les/zi0;->f()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v5, p1}, Lcom/ss/android/socialbase/appdownloader/h;->a(Ljava/lang/String;)Lcom/ss/android/socialbase/appdownloader/h;

    .line 91
    invoke-virtual {v5, v1}, Lcom/ss/android/socialbase/appdownloader/h;->d(Ljava/lang/String;)Lcom/ss/android/socialbase/appdownloader/h;

    .line 92
    invoke-virtual {v5, v2}, Lcom/ss/android/socialbase/appdownloader/h;->a(Ljava/util/List;)Lcom/ss/android/socialbase/appdownloader/h;

    iget-object p1, p0, Les/jk0;->b:Les/vj0$b;

    iget-object p1, p1, Les/vj0$b;->b:Les/zi0;

    .line 93
    invoke-interface {p1}, Les/zi0;->j()Z

    move-result p1

    invoke-virtual {v5, p1}, Lcom/ss/android/socialbase/appdownloader/h;->a(Z)Lcom/ss/android/socialbase/appdownloader/h;

    iget-object p1, p0, Les/jk0;->b:Les/vj0$b;

    iget-object p1, p1, Les/vj0$b;->b:Les/zi0;

    .line 94
    invoke-interface {p1}, Les/zi0;->k()Z

    move-result p1

    invoke-virtual {v5, p1}, Lcom/ss/android/socialbase/appdownloader/h;->c(Z)Lcom/ss/android/socialbase/appdownloader/h;

    iget-object p1, p0, Les/jk0;->b:Les/vj0$b;

    iget-object p1, p1, Les/vj0$b;->b:Les/zi0;

    .line 95
    invoke-interface {p1}, Les/zi0;->m()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v5, p1}, Lcom/ss/android/socialbase/appdownloader/h;->b(Ljava/lang/String;)Lcom/ss/android/socialbase/appdownloader/h;

    .line 96
    invoke-virtual {v5, v4}, Lcom/ss/android/socialbase/appdownloader/h;->c(Ljava/lang/String;)Lcom/ss/android/socialbase/appdownloader/h;

    .line 97
    invoke-virtual {v5, p2}, Lcom/ss/android/socialbase/appdownloader/h;->a(Les/sn0;)Lcom/ss/android/socialbase/appdownloader/h;

    iget-object p1, p0, Les/jk0;->b:Les/vj0$b;

    iget-object p1, p1, Les/vj0$b;->b:Les/zi0;

    .line 98
    invoke-interface {p1}, Les/zi0;->o()Z

    move-result p1

    invoke-virtual {v5, p1}, Lcom/ss/android/socialbase/appdownloader/h;->l(Z)Lcom/ss/android/socialbase/appdownloader/h;

    iget-object p1, p0, Les/jk0;->b:Les/vj0$b;

    iget-object p1, p1, Les/vj0$b;->b:Les/zi0;

    .line 99
    invoke-interface {p1}, Les/zi0;->A()Les/mn0;

    move-result-object p1

    invoke-virtual {v5, p1}, Lcom/ss/android/socialbase/appdownloader/h;->a(Les/mn0;)Lcom/ss/android/socialbase/appdownloader/h;

    iget-object p1, p0, Les/jk0;->b:Les/vj0$b;

    iget-object p1, p1, Les/vj0$b;->b:Les/zi0;

    .line 100
    invoke-interface {p1}, Les/zi0;->z()Z

    move-result p1

    invoke-virtual {v5, p1}, Lcom/ss/android/socialbase/appdownloader/h;->b(Z)Lcom/ss/android/socialbase/appdownloader/h;

    iget-object p1, p0, Les/jk0;->b:Les/vj0$b;

    iget-object p1, p1, Les/vj0$b;->b:Les/zi0;

    .line 101
    invoke-interface {p1}, Les/zi0;->t()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v5, p1}, Lcom/ss/android/socialbase/appdownloader/h;->f(Ljava/lang/String;)Lcom/ss/android/socialbase/appdownloader/h;

    const/16 p1, 0x3e8

    .line 102
    invoke-virtual {v5, p1}, Lcom/ss/android/socialbase/appdownloader/h;->c(I)Lcom/ss/android/socialbase/appdownloader/h;

    const/16 p1, 0x64

    .line 103
    invoke-virtual {v5, p1}, Lcom/ss/android/socialbase/appdownloader/h;->d(I)Lcom/ss/android/socialbase/appdownloader/h;

    iget-object p1, p0, Les/jk0;->b:Les/vj0$b;

    iget-object p1, p1, Les/vj0$b;->b:Les/zi0;

    .line 104
    invoke-interface {p1}, Les/zi0;->n()Lorg/json/JSONObject;

    move-result-object p1

    invoke-virtual {v5, p1}, Lcom/ss/android/socialbase/appdownloader/h;->a(Lorg/json/JSONObject;)Lcom/ss/android/socialbase/appdownloader/h;

    .line 105
    invoke-virtual {v5, v6}, Lcom/ss/android/socialbase/appdownloader/h;->i(Z)Lcom/ss/android/socialbase/appdownloader/h;

    .line 106
    invoke-virtual {v5, v6}, Lcom/ss/android/socialbase/appdownloader/h;->j(Z)Lcom/ss/android/socialbase/appdownloader/h;

    const/4 p1, 0x5

    const-string p2, "retry_count"

    .line 107
    invoke-virtual {v3, p2, p1}, Les/jo0;->a(Ljava/lang/String;I)I

    move-result p1

    invoke-virtual {v5, p1}, Lcom/ss/android/socialbase/appdownloader/h;->a(I)Lcom/ss/android/socialbase/appdownloader/h;

    const-string p1, "backup_url_retry_count"

    .line 108
    invoke-virtual {v3, p1, v0}, Les/jo0;->a(Ljava/lang/String;I)I

    move-result p1

    invoke-virtual {v5, p1}, Lcom/ss/android/socialbase/appdownloader/h;->b(I)Lcom/ss/android/socialbase/appdownloader/h;

    .line 109
    invoke-virtual {v5, v6}, Lcom/ss/android/socialbase/appdownloader/h;->j(Z)Lcom/ss/android/socialbase/appdownloader/h;

    .line 110
    invoke-virtual {v5, v6}, Lcom/ss/android/socialbase/appdownloader/h;->m(Z)Lcom/ss/android/socialbase/appdownloader/h;

    const-string p1, "need_https_to_http_retry"

    .line 111
    invoke-virtual {v3, p1, v0}, Les/jo0;->a(Ljava/lang/String;I)I

    move-result p1

    if-ne p1, v6, :cond_4

    const/4 p1, 0x1

    goto :goto_1

    :cond_4
    const/4 p1, 0x0

    :goto_1
    invoke-virtual {v5, p1}, Lcom/ss/android/socialbase/appdownloader/h;->d(Z)Lcom/ss/android/socialbase/appdownloader/h;

    const-string p1, "need_chunk_downgrade_retry"

    .line 112
    invoke-virtual {v3, p1, v6}, Les/jo0;->a(Ljava/lang/String;I)I

    move-result p1

    if-ne p1, v6, :cond_5

    const/4 p1, 0x1

    goto :goto_2

    :cond_5
    const/4 p1, 0x0

    :goto_2
    invoke-virtual {v5, p1}, Lcom/ss/android/socialbase/appdownloader/h;->h(Z)Lcom/ss/android/socialbase/appdownloader/h;

    const-string p1, "need_retry_delay"

    .line 113
    invoke-virtual {v3, p1, v0}, Les/jo0;->a(Ljava/lang/String;I)I

    move-result p1

    if-ne p1, v6, :cond_6

    const/4 p1, 0x1

    goto :goto_3

    :cond_6
    const/4 p1, 0x0

    :goto_3
    invoke-virtual {v5, p1}, Lcom/ss/android/socialbase/appdownloader/h;->g(Z)Lcom/ss/android/socialbase/appdownloader/h;

    const-string p1, "retry_delay_time_array"

    .line 114
    invoke-virtual {v3, p1}, Les/jo0;->c(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v5, p1}, Lcom/ss/android/socialbase/appdownloader/h;->h(Ljava/lang/String;)Lcom/ss/android/socialbase/appdownloader/h;

    const-string p1, "need_reuse_runnable"

    .line 115
    invoke-virtual {v3, p1, v0}, Les/jo0;->a(Ljava/lang/String;I)I

    move-result p1

    if-ne p1, v6, :cond_7

    const/4 p1, 0x1

    goto :goto_4

    :cond_7
    const/4 p1, 0x0

    :goto_4
    invoke-virtual {v5, p1}, Lcom/ss/android/socialbase/appdownloader/h;->k(Z)Lcom/ss/android/socialbase/appdownloader/h;

    const-string p1, "need_independent_process"

    .line 116
    invoke-virtual {v3, p1, v0}, Les/jo0;->a(Ljava/lang/String;I)I

    move-result p1

    if-ne p1, v6, :cond_8

    const/4 p1, 0x1

    goto :goto_5

    :cond_8
    const/4 p1, 0x0

    :goto_5
    invoke-virtual {v5, p1}, Lcom/ss/android/socialbase/appdownloader/h;->l(Z)Lcom/ss/android/socialbase/appdownloader/h;

    iget-object p1, p0, Les/jk0;->b:Les/vj0$b;

    iget-object p1, p1, Les/vj0$b;->b:Les/zi0;

    .line 117
    invoke-interface {p1}, Les/zi0;->a()Ljava/lang/String;

    move-result-object p1

    iget-object p2, p0, Les/jk0;->b:Les/vj0$b;

    iget-object p2, p2, Les/vj0$b;->b:Les/zi0;

    invoke-interface {p2}, Les/zi0;->n()Lorg/json/JSONObject;

    move-result-object p2

    invoke-static {p1, p2}, Les/gk0;->a(Ljava/lang/String;Lorg/json/JSONObject;)Lcom/ss/android/socialbase/downloader/downloader/j;

    move-result-object p1

    invoke-virtual {v5, p1}, Lcom/ss/android/socialbase/appdownloader/h;->a(Lcom/ss/android/socialbase/downloader/downloader/j;)Lcom/ss/android/socialbase/appdownloader/h;

    iget-object p1, p0, Les/jk0;->b:Les/vj0$b;

    iget-object p1, p1, Les/vj0$b;->b:Les/zi0;

    .line 118
    invoke-interface {p1}, Les/zi0;->n()Lorg/json/JSONObject;

    move-result-object p1

    invoke-static {p1}, Les/gk0;->a(Lorg/json/JSONObject;)Lcom/ss/android/socialbase/downloader/downloader/i;

    move-result-object p1

    invoke-virtual {v5, p1}, Lcom/ss/android/socialbase/appdownloader/h;->a(Lcom/ss/android/socialbase/downloader/downloader/i;)Lcom/ss/android/socialbase/appdownloader/h;

    .line 119
    iget-object p1, p0, Les/jk0;->b:Les/vj0$b;

    iget-object p1, p1, Les/vj0$b;->b:Les/zi0;

    invoke-interface {p1}, Les/zi0;->g()Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p1

    if-nez p1, :cond_9

    .line 120
    iget-object p1, p0, Les/jk0;->b:Les/vj0$b;

    iget-object p1, p1, Les/vj0$b;->b:Les/zi0;

    invoke-interface {p1}, Les/zi0;->g()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v5, p1}, Lcom/ss/android/socialbase/appdownloader/h;->e(Ljava/lang/String;)Lcom/ss/android/socialbase/appdownloader/h;

    goto :goto_6

    :cond_9
    const-string p1, "application/vnd.android.package-archive"

    .line 121
    invoke-virtual {v5, p1}, Lcom/ss/android/socialbase/appdownloader/h;->e(Ljava/lang/String;)Lcom/ss/android/socialbase/appdownloader/h;

    :goto_6
    const/4 p1, 0x0

    const-string p2, "clear_space_use_disk_handler"

    .line 122
    invoke-virtual {v3, p2, v0}, Les/jo0;->a(Ljava/lang/String;I)I

    move-result p2

    if-ne p2, v6, :cond_a

    .line 123
    new-instance p1, Les/ak0;

    invoke-direct {p1}, Les/ak0;-><init>()V

    .line 124
    invoke-virtual {v5, p1}, Lcom/ss/android/socialbase/appdownloader/h;->a(Les/ln0;)Lcom/ss/android/socialbase/appdownloader/h;

    .line 125
    :cond_a
    iget-object p2, p0, Les/jk0;->b:Les/vj0$b;

    iget-object p2, p2, Les/vj0$b;->b:Les/zi0;

    invoke-direct {p0}, Les/jk0;->d()Z

    move-result v0

    invoke-static {p2, v0, v5}, Les/kk0;->a(Les/zi0;ZLcom/ss/android/socialbase/appdownloader/h;)I

    move-result p2

    if-eqz p1, :cond_b

    .line 126
    invoke-virtual {p1, p2}, Les/ak0;->a(I)V

    :cond_b
    return p2
.end method

.method public a(Z)I
    .locals 1

    .line 41
    invoke-virtual {p0}, Les/jk0;->a()Z

    move-result v0

    if-eqz v0, :cond_0

    if-eqz p1, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    return p1
.end method

.method public a(J)V
    .locals 1

    .line 2
    iput-wide p1, p0, Les/jk0;->a:J

    .line 3
    invoke-static {}, Les/vj0;->c()Les/vj0;

    move-result-object v0

    invoke-virtual {v0, p1, p2}, Les/vj0;->e(J)Les/vj0$b;

    move-result-object p1

    iput-object p1, p0, Les/jk0;->b:Les/vj0$b;

    .line 4
    invoke-virtual {p1}, Les/vj0$b;->a()Z

    move-result p1

    if-eqz p1, :cond_0

    .line 5
    invoke-static {}, Les/cl0;->b()V

    :cond_0
    return-void
.end method

.method public a(Landroid/os/Message;)V
    .locals 2

    .line 160
    iget p1, p1, Landroid/os/Message;->what:I

    const/4 v0, 0x1

    if-eq p1, v0, :cond_0

    goto :goto_0

    .line 161
    :cond_0
    invoke-static {}, Les/lk0;->k()Les/hi0;

    move-result-object p1

    if-eqz p1, :cond_1

    .line 162
    invoke-interface {p1}, Les/hi0;->a()Z

    move-result p1

    if-eqz p1, :cond_1

    .line 163
    invoke-static {}, Les/uk0;->a()Les/uk0;

    move-result-object p1

    iget-object v0, p0, Les/jk0;->b:Les/vj0$b;

    const-string v1, "install_window_show"

    invoke-virtual {p1, v1, v0}, Les/uk0;->a(Ljava/lang/String;Les/vj0$b;)V

    :cond_1
    :goto_0
    return-void
.end method

.method a(Landroid/os/Message;Les/gj0;Ljava/util/List;)V
    .locals 11
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/os/Message;",
            "Les/gj0;",
            "Ljava/util/List<",
            "Les/aj0;",
            ">;)V"
        }
    .end annotation

    if-eqz p1, :cond_c

    .line 47
    iget v0, p1, Landroid/os/Message;->what:I

    const/4 v1, 0x3

    if-eq v0, v1, :cond_0

    goto/16 :goto_2

    .line 48
    :cond_0
    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Les/zn0;

    .line 49
    iget p1, p1, Landroid/os/Message;->arg1:I

    const/4 v2, 0x0

    const/4 v3, 0x2

    const/4 v4, 0x1

    if-ne p1, v4, :cond_1

    goto :goto_0

    :cond_1
    const/4 v5, 0x6

    if-ne p1, v5, :cond_2

    goto :goto_0

    :cond_2
    if-ne p1, v3, :cond_3

    .line 50
    invoke-virtual {v0}, Les/zn0;->z0()Z

    move-result p1

    if-eqz p1, :cond_3

    .line 51
    invoke-static {}, Les/fl0;->a()Les/fl0;

    move-result-object p1

    iget-object v5, p0, Les/jk0;->b:Les/vj0$b;

    iget-object v6, v5, Les/vj0$b;->b:Les/zi0;

    iget-object v7, v5, Les/vj0$b;->d:Les/xi0;

    iget-object v5, v5, Les/vj0$b;->c:Les/yi0;

    invoke-virtual {p1, v6, v7, v5}, Les/fl0;->a(Les/zi0;Les/xi0;Les/yi0;)V

    .line 52
    invoke-virtual {v0, v2}, Les/zn0;->f(Z)V

    .line 53
    :cond_3
    :goto_0
    invoke-virtual {p2, v0}, Les/gj0;->a(Les/zn0;)V

    .line 54
    invoke-virtual {v0}, Les/zn0;->X0()I

    move-result p1

    invoke-static {p1}, Lcom/ss/android/socialbase/appdownloader/d;->a(I)I

    move-result p1

    .line 55
    invoke-virtual {v0}, Les/zn0;->c0()J

    move-result-wide v5

    const-wide/16 v7, 0x0

    cmp-long v9, v5, v7

    if-lez v9, :cond_4

    .line 56
    invoke-virtual {v0}, Les/zn0;->z()J

    move-result-wide v7

    const-wide/16 v9, 0x64

    mul-long v7, v7, v9

    div-long/2addr v7, v5

    long-to-int v2, v7

    .line 57
    iget-object v5, p0, Les/jk0;->e:Les/jk0$e;

    if-eqz v5, :cond_4

    .line 58
    invoke-interface {v5, v0}, Les/jk0$e;->a(Les/zn0;)V

    const/4 v5, 0x0

    .line 59
    iput-object v5, p0, Les/jk0;->e:Les/jk0$e;

    .line 60
    :cond_4
    invoke-interface {p3}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p3

    :cond_5
    :goto_1
    invoke-interface {p3}, Ljava/util/Iterator;->hasNext()Z

    move-result v5

    if-eqz v5, :cond_c

    invoke-interface {p3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Les/aj0;

    if-eq p1, v4, :cond_b

    if-eq p1, v3, :cond_a

    if-eq p1, v1, :cond_6

    goto :goto_1

    .line 61
    :cond_6
    invoke-virtual {v0}, Les/zn0;->X0()I

    move-result v6

    const/4 v7, -0x4

    if-ne v6, v7, :cond_7

    .line 62
    invoke-interface {v5}, Les/aj0;->a()V

    goto :goto_1

    .line 63
    :cond_7
    invoke-virtual {v0}, Les/zn0;->X0()I

    move-result v6

    const/4 v7, -0x1

    if-ne v6, v7, :cond_8

    .line 64
    invoke-interface {v5, p2}, Les/aj0;->a(Les/gj0;)V

    goto :goto_1

    .line 65
    :cond_8
    invoke-virtual {v0}, Les/zn0;->X0()I

    move-result v6

    const/4 v7, -0x3

    if-ne v6, v7, :cond_5

    .line 66
    iget-object v6, p0, Les/jk0;->b:Les/vj0$b;

    iget-object v6, v6, Les/vj0$b;->b:Les/zi0;

    invoke-static {v6}, Les/cl0;->a(Les/zi0;)Z

    move-result v6

    if-eqz v6, :cond_9

    .line 67
    invoke-interface {v5, p2}, Les/aj0;->b(Les/gj0;)V

    goto :goto_1

    .line 68
    :cond_9
    invoke-interface {v5, p2}, Les/aj0;->c(Les/gj0;)V

    goto :goto_1

    .line 69
    :cond_a
    invoke-interface {v5, p2, v2}, Les/aj0;->b(Les/gj0;I)V

    goto :goto_1

    .line 70
    :cond_b
    invoke-interface {v5, p2, v2}, Les/aj0;->a(Les/gj0;I)V

    goto :goto_1

    :cond_c
    :goto_2
    return-void
.end method

.method a(Les/ui0;)V
    .locals 2
    .param p1    # Les/ui0;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 42
    iget-object v0, p0, Les/jk0;->b:Les/vj0$b;

    iget-object v0, v0, Les/vj0$b;->b:Les/zi0;

    invoke-interface {v0}, Les/zi0;->l()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 43
    iget-object v0, p0, Les/jk0;->b:Les/vj0$b;

    iget-object v0, v0, Les/vj0$b;->b:Les/zi0;

    invoke-interface {v0}, Les/zi0;->l()Ljava/lang/String;

    move-result-object v0

    .line 44
    invoke-static {}, Landroid/os/Environment;->getDataDirectory()Ljava/io/File;

    move-result-object v1

    invoke-virtual {v1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 45
    invoke-interface {p1}, Les/ui0;->a()V

    return-void

    .line 46
    :cond_0
    new-instance v0, Les/jk0$a;

    invoke-direct {v0, p0, p1}, Les/jk0$a;-><init>(Les/jk0;Les/ui0;)V

    invoke-direct {p0, v0}, Les/jk0;->b(Les/ui0;)V

    return-void
.end method

.method public a(Les/zn0;)V
    .locals 1

    const/4 v0, 0x0

    .line 6
    iput-boolean v0, p0, Les/jk0;->c:Z

    .line 7
    iget-object v0, p0, Les/jk0;->e:Les/jk0$e;

    if-eqz v0, :cond_0

    .line 8
    invoke-interface {v0, p1}, Les/jk0$e;->a(Les/zn0;)V

    const/4 p1, 0x0

    .line 9
    iput-object p1, p0, Les/jk0;->e:Les/jk0$e;

    :cond_0
    return-void
.end method

.method a(Les/zn0;Les/gj0;Ljava/util/List;)V
    .locals 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Les/zn0;",
            "Les/gj0;",
            "Ljava/util/List<",
            "Les/aj0;",
            ">;)V"
        }
    .end annotation

    .line 141
    invoke-interface {p3}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_0

    return-void

    :cond_0
    if-eqz p1, :cond_7

    if-nez p2, :cond_1

    goto/16 :goto_3

    :cond_1
    const/4 v0, 0x0

    .line 142
    :try_start_0
    invoke-virtual {p1}, Les/zn0;->c0()J

    move-result-wide v1

    const-wide/16 v3, 0x0

    cmp-long v5, v1, v3

    if-lez v5, :cond_2

    .line 143
    invoke-virtual {p1}, Les/zn0;->z()J

    move-result-wide v1

    const-wide/16 v3, 0x64

    mul-long v1, v1, v3

    invoke-virtual {p1}, Les/zn0;->c0()J

    move-result-wide v3

    div-long/2addr v1, v3
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    long-to-int v2, v1

    goto :goto_0

    :catch_0
    move-exception v1

    .line 144
    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V

    :cond_2
    const/4 v2, 0x0

    :goto_0
    if-gez v2, :cond_3

    goto :goto_1

    :cond_3
    move v0, v2

    .line 145
    :goto_1
    invoke-virtual {p2, p1}, Les/gj0;->a(Les/zn0;)V

    .line 146
    invoke-interface {p3}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p3

    :goto_2
    invoke-interface {p3}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_6

    invoke-interface {p3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Les/aj0;

    .line 147
    invoke-virtual {p1}, Les/zn0;->X0()I

    move-result v2

    packed-switch v2, :pswitch_data_0

    :pswitch_0
    goto :goto_2

    .line 148
    :pswitch_1
    invoke-interface {v1, p2, v0}, Les/aj0;->a(Les/gj0;I)V

    goto :goto_2

    .line 149
    :pswitch_2
    invoke-interface {v1, p2}, Les/aj0;->a(Les/gj0;)V

    goto :goto_2

    .line 150
    :pswitch_3
    invoke-interface {v1, p2, v0}, Les/aj0;->b(Les/gj0;I)V

    goto :goto_2

    .line 151
    :pswitch_4
    iget-object v2, p0, Les/jk0;->b:Les/vj0$b;

    iget-object v2, v2, Les/vj0$b;->b:Les/zi0;

    invoke-static {v2}, Les/cl0;->a(Les/zi0;)Z

    move-result v2

    if-eqz v2, :cond_4

    .line 152
    invoke-interface {v1, p2}, Les/aj0;->b(Les/gj0;)V

    goto :goto_2

    .line 153
    :cond_4
    invoke-interface {v1, p2}, Les/aj0;->c(Les/gj0;)V

    goto :goto_2

    .line 154
    :pswitch_5
    iget-object v2, p0, Les/jk0;->b:Les/vj0$b;

    iget-object v2, v2, Les/vj0$b;->b:Les/zi0;

    invoke-static {v2}, Les/cl0;->a(Les/zi0;)Z

    move-result v2

    if-eqz v2, :cond_5

    const/4 v2, -0x3

    .line 155
    iput v2, p2, Les/gj0;->b:I

    .line 156
    invoke-interface {v1, p2}, Les/aj0;->b(Les/gj0;)V

    goto :goto_2

    .line 157
    :cond_5
    invoke-interface {v1}, Les/aj0;->a()V

    goto :goto_2

    :cond_6
    return-void

    .line 158
    :cond_7
    :goto_3
    invoke-interface {p3}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :goto_4
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result p2

    if-eqz p2, :cond_8

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Les/aj0;

    .line 159
    invoke-interface {p2}, Les/aj0;->a()V

    goto :goto_4

    :cond_8
    return-void

    :pswitch_data_0
    .packed-switch -0x4
        :pswitch_5
        :pswitch_4
        :pswitch_3
        :pswitch_2
        :pswitch_0
        :pswitch_1
        :pswitch_1
        :pswitch_1
        :pswitch_1
        :pswitch_1
        :pswitch_0
        :pswitch_1
        :pswitch_1
    .end packed-switch
.end method

.method a()Z
    .locals 1

    .line 40
    iget-object v0, p0, Les/jk0;->b:Les/vj0$b;

    iget-object v0, v0, Les/vj0$b;->b:Les/zi0;

    invoke-static {v0}, Les/cl0;->a(Les/zi0;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Les/jk0;->b:Les/vj0$b;

    iget-object v0, v0, Les/vj0$b;->d:Les/xi0;

    invoke-interface {v0}, Les/xi0;->a()I

    move-result v0

    invoke-static {v0}, Les/kk0;->a(I)Z

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method a(Landroid/content/Context;IZ)Z
    .locals 10

    .line 10
    new-instance v0, Les/wj0;

    const/4 v1, 0x0

    invoke-direct {v0, v1}, Les/wj0;-><init>(I)V

    .line 11
    iget-object v2, p0, Les/jk0;->b:Les/vj0$b;

    iget-object v2, v2, Les/vj0$b;->b:Les/zi0;

    invoke-static {v2}, Les/cl0;->a(Les/zi0;)Z

    move-result v2

    const/4 v3, 0x1

    if-eqz v2, :cond_2

    .line 12
    iget-object v2, p0, Les/jk0;->b:Les/vj0$b;

    iget-object v2, v2, Les/vj0$b;->b:Les/zi0;

    invoke-interface {v2}, Les/zi0;->u()Les/dj0;

    move-result-object v2

    if-nez v2, :cond_0

    const/4 v2, 0x0

    goto :goto_0

    .line 13
    :cond_0
    invoke-virtual {v2}, Les/dj0;->a()Ljava/lang/String;

    move-result-object v2

    .line 14
    :goto_0
    iget-object v4, p0, Les/jk0;->b:Les/vj0$b;

    iget-object v4, v4, Les/vj0$b;->d:Les/xi0;

    invoke-interface {v4}, Les/xi0;->a()I

    move-result v4

    invoke-static {v4}, Les/kk0;->a(I)Z

    move-result v4

    if-eqz v4, :cond_1

    .line 15
    iget-object p3, p0, Les/jk0;->b:Les/vj0$b;

    iget-object p3, p3, Les/vj0$b;->b:Les/zi0;

    invoke-interface {p3}, Les/zi0;->t()Ljava/lang/String;

    move-result-object p3

    invoke-static {v2, p3}, Les/zk0;->a(Ljava/lang/String;Ljava/lang/String;)Les/wj0;

    move-result-object p3

    :goto_1
    move-object v0, p3

    goto :goto_2

    :cond_1
    if-nez p3, :cond_3

    .line 16
    iget-object p3, p0, Les/jk0;->b:Les/vj0$b;

    iget-object p3, p3, Les/vj0$b;->d:Les/xi0;

    invoke-interface {p3}, Les/xi0;->a()I

    move-result p3

    invoke-static {p3}, Les/kk0;->c(I)Z

    move-result p3

    if-eqz p3, :cond_3

    .line 17
    invoke-static {v2}, Les/zk0;->a(Ljava/lang/String;)Les/wj0;

    move-result-object p3

    goto :goto_1

    .line 18
    :cond_2
    invoke-direct {p0, p2}, Les/jk0;->a(I)Z

    move-result p3

    if-eqz p3, :cond_3

    iget-object p3, p0, Les/jk0;->b:Les/vj0$b;

    iget-object p3, p3, Les/vj0$b;->b:Les/zi0;

    .line 19
    invoke-interface {p3}, Les/zi0;->t()Ljava/lang/String;

    move-result-object p3

    invoke-static {p3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p3

    if-nez p3, :cond_3

    .line 20
    invoke-static {}, Les/lk0;->i()Lorg/json/JSONObject;

    move-result-object p3

    const-string v2, "disable_market"

    invoke-virtual {p3, v2}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result p3

    if-eq p3, v3, :cond_3

    .line 21
    invoke-static {}, Les/uk0;->a()Les/uk0;

    move-result-object p3

    iget-object v0, p0, Les/jk0;->b:Les/vj0$b;

    const-string v2, "market_click_open"

    invoke-virtual {p3, v2, v0}, Les/uk0;->a(Ljava/lang/String;Les/vj0$b;)V

    .line 22
    iget-object p3, p0, Les/jk0;->b:Les/vj0$b;

    iget-object p3, p3, Les/vj0$b;->b:Les/zi0;

    invoke-interface {p3}, Les/zi0;->t()Ljava/lang/String;

    move-result-object p3

    invoke-static {p1, p3}, Les/zk0;->a(Landroid/content/Context;Ljava/lang/String;)Les/wj0;

    move-result-object v0

    .line 23
    :cond_3
    :goto_2
    invoke-virtual {v0}, Les/wj0;->a()I

    move-result p3

    packed-switch p3, :pswitch_data_0

    return v1

    .line 24
    :pswitch_0
    invoke-static {}, Les/uk0;->a()Les/uk0;

    move-result-object p1

    iget-object p2, p0, Les/jk0;->b:Les/vj0$b;

    const-string p3, "market_open_failed"

    invoke-virtual {p1, p3, p2}, Les/uk0;->a(Ljava/lang/String;Les/vj0$b;)V

    return v1

    .line 25
    :pswitch_1
    invoke-static {}, Les/uk0;->a()Les/uk0;

    move-result-object p3

    iget-wide v0, p0, Les/jk0;->a:J

    invoke-virtual {p3, v0, v1, p2}, Les/uk0;->a(JI)V

    .line 26
    invoke-static {}, Les/uk0;->a()Les/uk0;

    move-result-object p2

    iget-object p3, p0, Les/jk0;->b:Les/vj0$b;

    const-string v0, "market_open_success"

    invoke-virtual {p2, v0, p3}, Les/uk0;->a(Ljava/lang/String;Les/vj0$b;)V

    .line 27
    invoke-static {}, Les/lk0;->c()Les/ii0;

    move-result-object v4

    iget-object p2, p0, Les/jk0;->b:Les/vj0$b;

    iget-object v6, p2, Les/vj0$b;->b:Les/zi0;

    iget-object v7, p2, Les/vj0$b;->d:Les/xi0;

    iget-object v8, p2, Les/vj0$b;->c:Les/yi0;

    invoke-interface {v6}, Les/zi0;->t()Ljava/lang/String;

    move-result-object v9

    move-object v5, p1

    invoke-interface/range {v4 .. v9}, Les/ii0;->a(Landroid/content/Context;Les/zi0;Les/xi0;Les/yi0;Ljava/lang/String;)V

    .line 28
    invoke-static {}, Les/sj0;->a()Les/sj0;

    move-result-object p1

    iget-object p2, p0, Les/jk0;->b:Les/vj0$b;

    iget-object p2, p2, Les/vj0$b;->b:Les/zi0;

    invoke-virtual {p1, p2}, Les/sj0;->a(Les/zi0;)V

    .line 29
    new-instance p1, Les/nj0;

    iget-object p2, p0, Les/jk0;->b:Les/vj0$b;

    iget-object p3, p2, Les/vj0$b;->b:Les/zi0;

    iget-object v0, p2, Les/vj0$b;->c:Les/yi0;

    iget-object p2, p2, Les/vj0$b;->d:Les/xi0;

    invoke-direct {p1, p3, v0, p2}, Les/nj0;-><init>(Les/zi0;Les/yi0;Les/xi0;)V

    const/4 p2, 0x2

    .line 30
    invoke-virtual {p1, p2}, Les/nj0;->a(I)V

    .line 31
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide p2

    invoke-virtual {p1, p2, p3}, Les/nj0;->c(J)V

    const/4 p2, 0x4

    .line 32
    invoke-virtual {p1, p2}, Les/nj0;->d(I)V

    .line 33
    invoke-static {}, Les/vj0;->c()Les/vj0;

    move-result-object p2

    invoke-virtual {p2, p1}, Les/vj0;->a(Les/nj0;)V

    :pswitch_2
    return v3

    .line 34
    :pswitch_3
    invoke-static {}, Les/uk0;->a()Les/uk0;

    move-result-object p2

    iget-object p3, p0, Les/jk0;->b:Les/vj0$b;

    const-string v0, "deeplink_app_open"

    invoke-virtual {p2, v0, p3}, Les/uk0;->a(Ljava/lang/String;Les/vj0$b;)V

    .line 35
    invoke-static {}, Les/lk0;->c()Les/ii0;

    move-result-object v4

    iget-object p2, p0, Les/jk0;->b:Les/vj0$b;

    iget-object v6, p2, Les/vj0$b;->b:Les/zi0;

    iget-object v7, p2, Les/vj0$b;->d:Les/xi0;

    iget-object v8, p2, Les/vj0$b;->c:Les/yi0;

    invoke-interface {v6}, Les/zi0;->t()Ljava/lang/String;

    move-result-object v9

    move-object v5, p1

    invoke-interface/range {v4 .. v9}, Les/ii0;->a(Landroid/content/Context;Les/zi0;Les/xi0;Les/yi0;Ljava/lang/String;)V

    :pswitch_4
    return v3

    .line 36
    :pswitch_5
    invoke-static {}, Les/uk0;->a()Les/uk0;

    move-result-object p2

    iget-object p3, p0, Les/jk0;->b:Les/vj0$b;

    const-string v0, "deeplink_url_open"

    invoke-virtual {p2, v0, p3}, Les/uk0;->a(Ljava/lang/String;Les/vj0$b;)V

    .line 37
    invoke-static {}, Les/lk0;->c()Les/ii0;

    move-result-object v4

    iget-object p2, p0, Les/jk0;->b:Les/vj0$b;

    iget-object v6, p2, Les/vj0$b;->b:Les/zi0;

    iget-object v7, p2, Les/vj0$b;->d:Les/xi0;

    iget-object v8, p2, Les/vj0$b;->c:Les/yi0;

    invoke-interface {v6}, Les/zi0;->t()Ljava/lang/String;

    move-result-object v9

    move-object v5, p1

    invoke-interface/range {v4 .. v9}, Les/ii0;->a(Landroid/content/Context;Les/zi0;Les/xi0;Les/yi0;Ljava/lang/String;)V

    return v3

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_5
        :pswitch_4
        :pswitch_3
        :pswitch_2
        :pswitch_1
        :pswitch_0
    .end packed-switch
.end method

.method b()V
    .locals 2

    .line 2
    iget-object v0, p0, Les/jk0;->b:Les/vj0$b;

    iget-object v0, v0, Les/vj0$b;->d:Les/xi0;

    invoke-interface {v0}, Les/xi0;->a()I

    move-result v0

    invoke-static {v0}, Les/kk0;->b(I)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Les/jk0;->b:Les/vj0$b;

    iget-object v0, v0, Les/vj0$b;->b:Les/zi0;

    .line 3
    invoke-interface {v0}, Les/zi0;->u()Les/dj0;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 4
    invoke-static {}, Les/sj0;->a()Les/sj0;

    move-result-object v0

    iget-object v1, p0, Les/jk0;->b:Les/vj0$b;

    iget-object v1, v1, Les/vj0$b;->b:Les/zi0;

    invoke-interface {v1}, Les/zi0;->u()Les/dj0;

    move-result-object v1

    invoke-virtual {v0, v1}, Les/sj0;->a(Les/dj0;)V

    :cond_0
    return-void
.end method

.method b(Les/zn0;)V
    .locals 4

    .line 9
    iget-object v0, p0, Les/jk0;->b:Les/vj0$b;

    iget-object v0, v0, Les/vj0$b;->b:Les/zi0;

    invoke-static {v0}, Les/kk0;->a(Les/zi0;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 10
    iget-boolean v0, p0, Les/jk0;->c:Z

    if-nez v0, :cond_1

    const/4 v0, 0x1

    if-eqz p1, :cond_0

    .line 11
    invoke-virtual {p1}, Les/zn0;->U0()Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Les/cl0;->b(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x2

    .line 12
    :goto_0
    invoke-static {}, Les/uk0;->a()Les/uk0;

    move-result-object v1

    iget-object v2, p0, Les/jk0;->b:Les/vj0$b;

    const-string v3, "file_status"

    invoke-virtual {v1, v3, p1, v2}, Les/uk0;->a(Ljava/lang/String;ILes/vj0$b;)V

    .line 13
    iput-boolean v0, p0, Les/jk0;->c:Z

    :cond_1
    return-void
.end method

.method b(Z)Z
    .locals 1

    const/4 v0, 0x1

    if-nez p1, :cond_0

    .line 5
    iget-object p1, p0, Les/jk0;->b:Les/vj0$b;

    iget-object p1, p1, Les/vj0$b;->d:Les/xi0;

    invoke-interface {p1}, Les/xi0;->b()I

    move-result p1

    if-ne p1, v0, :cond_0

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method c()V
    .locals 1

    .line 1
    iget-object v0, p0, Les/jk0;->e:Les/jk0$e;

    if-nez v0, :cond_0

    .line 2
    new-instance v0, Les/jk0$c;

    invoke-direct {v0, p0}, Les/jk0$c;-><init>(Les/jk0;)V

    iput-object v0, p0, Les/jk0;->e:Les/jk0$e;

    :cond_0
    return-void
.end method

.method c(Les/zn0;)Z
    .locals 0

    .line 3
    invoke-direct {p0, p1}, Les/jk0;->e(Les/zn0;)Z

    move-result p1

    if-nez p1, :cond_1

    invoke-direct {p0}, Les/jk0;->h()Z

    move-result p1

    if-eqz p1, :cond_0

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    goto :goto_1

    :cond_1
    :goto_0
    const/4 p1, 0x1

    :goto_1
    return p1
.end method

.method d(Les/zn0;)V
    .locals 5

    .line 2
    iget-object v0, p0, Les/jk0;->b:Les/vj0$b;

    iget-object v0, v0, Les/vj0$b;->b:Les/zi0;

    if-eqz v0, :cond_5

    if-eqz p1, :cond_5

    invoke-virtual {p1}, Les/zn0;->N0()I

    move-result v0

    if-nez v0, :cond_0

    goto/16 :goto_2

    .line 3
    :cond_0
    invoke-virtual {p1}, Les/zn0;->X0()I

    move-result v0

    const/4 v1, -0x1

    const/4 v2, 0x2

    if-eq v0, v1, :cond_2

    const/4 v1, -0x4

    if-ne v0, v1, :cond_1

    goto :goto_0

    .line 4
    :cond_1
    iget-object v1, p0, Les/jk0;->b:Les/vj0$b;

    iget-object v1, v1, Les/vj0$b;->b:Les/zi0;

    invoke-static {v1}, Les/kk0;->a(Les/zi0;)Z

    move-result v1

    if-eqz v1, :cond_3

    .line 5
    invoke-static {}, Les/uk0;->a()Les/uk0;

    move-result-object v1

    iget-wide v3, p0, Les/jk0;->a:J

    invoke-virtual {v1, v3, v4, v2}, Les/uk0;->a(JI)V

    goto :goto_1

    .line 6
    :cond_2
    :goto_0
    invoke-static {}, Les/uk0;->a()Les/uk0;

    move-result-object v1

    iget-wide v3, p0, Les/jk0;->a:J

    invoke-virtual {v1, v3, v4, v2}, Les/uk0;->a(JI)V

    :cond_3
    :goto_1
    packed-switch v0, :pswitch_data_0

    :pswitch_0
    goto :goto_2

    .line 7
    :pswitch_1
    invoke-static {}, Les/uk0;->a()Les/uk0;

    move-result-object p1

    iget-wide v0, p0, Les/jk0;->a:J

    const/4 v2, 0x3

    invoke-virtual {p1, v0, v1, v2}, Les/uk0;->b(JI)V

    goto :goto_2

    .line 8
    :pswitch_2
    invoke-static {}, Les/uk0;->a()Les/uk0;

    move-result-object p1

    iget-wide v0, p0, Les/jk0;->a:J

    const/4 v2, 0x4

    invoke-virtual {p1, v0, v1, v2}, Les/uk0;->b(JI)V

    goto :goto_2

    .line 9
    :pswitch_3
    iget-object p1, p0, Les/jk0;->b:Les/vj0$b;

    iget-object p1, p1, Les/vj0$b;->b:Les/zi0;

    invoke-static {p1}, Les/cl0;->a(Les/zi0;)Z

    move-result p1

    if-eqz p1, :cond_4

    .line 10
    invoke-static {}, Les/cl0;->b()V

    goto :goto_2

    .line 11
    :cond_4
    invoke-static {}, Les/uk0;->a()Les/uk0;

    move-result-object p1

    iget-wide v0, p0, Les/jk0;->a:J

    const/4 v2, 0x5

    invoke-virtual {p1, v0, v1, v2}, Les/uk0;->b(JI)V

    .line 12
    invoke-direct {p0}, Les/jk0;->g()V

    goto :goto_2

    .line 13
    :pswitch_4
    invoke-virtual {p0}, Les/jk0;->c()V

    .line 14
    invoke-static {}, Les/vj0;->c()Les/vj0;

    move-result-object v0

    new-instance v1, Les/nj0;

    iget-object v2, p0, Les/jk0;->b:Les/vj0$b;

    iget-object v3, v2, Les/vj0$b;->b:Les/zi0;

    iget-object v4, v2, Les/vj0$b;->c:Les/yi0;

    iget-object v2, v2, Les/vj0$b;->d:Les/xi0;

    invoke-virtual {p1}, Les/zn0;->N0()I

    move-result p1

    invoke-direct {v1, v3, v4, v2, p1}, Les/nj0;-><init>(Les/zi0;Les/yi0;Les/xi0;I)V

    invoke-virtual {v0, v1}, Les/vj0;->a(Les/nj0;)V

    :cond_5
    :goto_2
    return-void

    nop

    :pswitch_data_0
    .packed-switch -0x4
        :pswitch_4
        :pswitch_3
        :pswitch_2
        :pswitch_4
        :pswitch_0
        :pswitch_1
        :pswitch_1
        :pswitch_1
        :pswitch_1
        :pswitch_1
        :pswitch_0
        :pswitch_1
        :pswitch_1
    .end packed-switch
.end method
